// DSSocketServer.cpp: implementation of the DSSocketServer class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "ds_server.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

DSSocketServer::DSSocketServer(int max_clients)
{
	SetMaxClientsNumber(max_clients);
}

DSSocketServer::~DSSocketServer()
{

}

CClientAgent * DSSocketServer::OnCreateClientAgent ()
{
	static int iNewClientCount = 0;
	iNewClientCount ++;
	//LOG4CXX_FATAL(Logger::getRootLogger(), "new client. new client total : " << iNewClientCount << " cur client : " << GetClientsNumber());
	return new DSSocketClient();
}